package Frame;

import java.awt.Dimension;
import java.awt.Toolkit;
import java.io.File;
import java.util.Vector;

import javax.swing.JFrame;
import javax.swing.JTabbedPane;

import CheckFile.CheckFile;
import Rank.insertIntoCustomDictionary;
import Rule.NameTag;


@SuppressWarnings("serial")
public class ManagerPanel extends JFrame{

	public ManagerPanel(){
		setTitle(NameTag.FrameTittle_Name);
		Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
		int width=screenSize.width/2-300;
		int height=screenSize.height/2-300;
		setBounds(width,height,650,550);
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

						
		final JTabbedPane tabPane=new JTabbedPane();
		tabPane.setTabPlacement(JTabbedPane.TOP);//选项卡在左方
		tabPane.setTabLayoutPolicy(JTabbedPane.SCROLL_TAB_LAYOUT);//选项卡为滚动布局
			
		//添加到tabPane中		
		tabPane.addTab(NameTag.tabName_1, new ManagerSerchPanel());
		tabPane.addTab(NameTag.tabName_2, new ManagerInsertPanel());
		tabPane.addTab(NameTag.tabName_5, new ManagerImportPanel());
		tabPane.addTab(NameTag.tabName_3, new ManagerUpdatePanel());
		tabPane.addTab(NameTag.tabName_4, new ExcelConvertData());		
		//tabPane.setEnabledAt(3, false);	
		
		getContentPane().add(tabPane);
		//setResizable(false);
		
	}
	
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		CheckFile.CheckHanLPFile();
		ManagerPanel m = new ManagerPanel();
		m.setVisible(true);	
		
		
		
	}

}
